from turbogears import validators, widgets

from mnemoply import reports

class GroupDischargeReport(reports.RDSReport):
    name = _("Group discharge")
    tag = "GroupDischarge"
    report_type = report_type = reports.RDSReportType.WORD
    template_module = "mnemoply.templates.reports.group_discharge"

    fields = [
        widgets.TextField(name='order_id', label=_('Order #'),
            validator=validators.Int(not_empty=True)),
        widgets.TextField(name='preorder_id', label=_('Preorder #'),
            validator=validators.Int(not_empty=True)),
    ]

exposed = GroupDischargeReport()
